package com.example.smartcity.Mappers;

import com.example.smartcity.Entity.Video;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface VideoMapper {
    @Select("select * from video ORDER BY id DESC")
    List<Video> findAllVideos();
    @Select("select id,video_url from video where video_name like '%#{video_name}%';")
    List<Video> findVideoByName(String video_name);

}
